<?php
class Zendvn_Paginator{
	
	public function create($totalItem,$options){
		
		$adapter = new Zend_Paginator_Adapter_Null($totalItem);		
		$paginator = new Zend_Paginator($adapter);
		$paginator->setItemCountPerPage($options['itemCountPerPage']);
		$paginator->setPageRange($options['pageRange']);		
		$paginator->setCurrentPageNumber($options['currentPageNumber']);
		
		return $paginator;
	}
}